Skip to content

feat(resolver): let hook profiles work with only a download hook - #1409

Merged
LalatenduMohanty merged 1 commit into
python-wheel-build:new-resolver-configfrom
LalatenduMohanty:issue-1387-hook-standard-resolution
Oct 28, 2026
Merged

LalatenduMohanty merged 1 commit into
python-wheel-build:new-resolver-configfrom
LalatenduMohanty:issue-1387-hook-standard-resolution

Conversation

@LalatenduMohanty

@LalatenduMohanty LalatenduMohanty commented Oct 28, 2026 •

Copy link
Copy Markdown
Member

If a package has a download_source hook but no get_resolver_provider hook, hook-sdist and hook-prebuilt now find versions on their index_url:

  • hook-sdist looks at sdists and wheels for any platform, like pypi-git.
  • hook-prebuilt looks at wheels for this platform, like pypi-prebuilt.

The download hook then gets the source or wheel. A package with neither hook gets an error that suggests pypi-sdist or pypi-prebuilt. Packages with a resolver hook work as before.

This follows the decision in #1387 (comment).

Closes: #1387

🤖 Generated with Claude Code

@LalatenduMohanty
LalatenduMohanty marked this pull request as ready for review October 28, 2026 18:38
@LalatenduMohanty
LalatenduMohanty requested a review from a team as a code owner October 28, 2026 18:38
@coderabbitai

coderabbitai Bot commented Oct 28, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

Run configuration

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@mergify mergify Bot added the ci label Oct 28, 2026
@LalatenduMohanty
LalatenduMohanty force-pushed the issue-1387-hook-standard-resolution branch 3 times, most recently from e7fd954 to 5dac270 Compare October 28, 2026 19:05
If a package has a download hook but no resolver hook, `hook-sdist` and
`hook-prebuilt` now find versions on their `index_url`. A package with
no hooks gets an error.

Closes: python-wheel-build#1387

Co-Authored-By: Claude <claude@anthropic.com>
Signed-off-by: Lalatendu Mohanty <lmohanty@redhat.com>
@LalatenduMohanty
LalatenduMohanty force-pushed the issue-1387-hook-standard-resolution branch from 5dac270 to fb7b165 Compare October 28, 2026 21:03
@mergify

mergify Bot commented Oct 28, 2026 •

Copy link
Copy Markdown
Contributor

This pull request does not currently match the merge queue conditions, so it cannot be queued from here. The box comes back if it matches again.

@rd4398 rd4398 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@LalatenduMohanty
LalatenduMohanty merged commit 2cecb06 into python-wheel-build:new-resolver-config Oct 28, 2026
66 of 69 checks passed
LalatenduMohanty added a commit that referenced this pull request Oct 30, 2026
0.102.0 was released from `main` without the new resolver config, so
the feature branch's version notes must name the next release.

- Change every `versionadded` and `versionchanged` added on this
  branch (0.95.0, 0.96.0 and 0.102.0) to 0.103.0.
- Merge notes that now sit next to each other with the same version.
- Drop the stale "do not fall back to PyPI" sentence for hook profiles.
  Since #1409, a hook profile without a `get_resolver_provider` hook
  finds versions on its `index_url`.

Co-Authored-By: Claude <claude@anthropic.com>
Signed-off-by: Lalatendu Mohanty <lmohanty@redhat.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants